<!--
  Generated template for the PubTradePage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>
  <ion-navbar color="gm-primary">
    <ion-title>交易操作</ion-title>
  </ion-navbar>
</ion-header>

<ion-content>
  <ion-item no-lines padding>
    <ion-label floating>请输入交易价格</ion-label>
    <ion-input type="number" [(ngModel)]="pub_trade.price"></ion-input>
  </ion-item>

  <ion-grid>
    <ion-row>
      <ion-col col-4>
        <button ion-button full (click)="onPubTrade(1)">买进</button>
      </ion-col>
      <ion-col col-4>
        <button ion-button full (click)="onPubTrade(2)">卖出</button>
      </ion-col>
      <ion-col col-4>
        <button ion-button full (click)="onPubTrade(3)">平仓</button>
      </ion-col>
    </ion-row>
  </ion-grid>
</ion-content>
